import { createApp } from "vue";
import ElementPlus from "element-plus";
import locale from "element-plus/es/locale/lang/zh-cn";

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import "element-plus/dist/index.css";
import App from "./App.vue";

import install from "./index";

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(install);

app.use(ElementPlus, { locale: locale });
app.mount("#app");
